# Contributor: John Gebbie <me@johngebbie.com>
# Maintainer: John Gebbie <me@johngebbie.com>
pkgname=noggin-model
pkgver=0.1
pkgrel=0
pkgdesc="Face landmark tracking model"
url="https://sr.ht/~geb/noggin"
arch="noarch"
license="BSD-2-Clause"
subpackages="$pkgname-lightweight"
source="noggin-$pkgver.tar.gz::https://git.sr.ht/~geb/noggin/archive/$pkgver.tar.gz"
builddir="$srcdir/noggin-$pkgver"
options="!check" # just data

package() {
	install -Dm644 models/lm_model3_opt.onnx -t "$pkgdir"/usr/share/noggin-models
	install -Dm644 models/lm_model0_opt.onnx -t "$pkgdir"/usr/share/noggin-models
}

lightweight() {
	amove usr/share/noggin-models/lm_model0_opt.onnx
}

sha512sums="
5da081eb8cb51ac3460d7e4c427a844ca95f50f768a9ada9e5fde2644b1cc51ae9f2745eccf88ecf0f49a6fd5c1fcc36d827ee1f32d1c4550fe65547f9baaf09  noggin-0.1.tar.gz
"
